home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
utility
/
warning.zip
/
D.BAT
next >
Wrap
DOS Batch File
|
1997-05-20
|
729b
|
42 lines
@echo off
rem: put this in your autoexec.bat to substitute del for d.bat:
rem: DOSKEY del=$ d.bat
rem: make sure d.bat is in your path if you use this
rem: Below is an example of using d.bat
cls
if [%1] == [*.*] goto warning
move %1 c:\temp
goto end
:warning
cls
echo.
REM: The below warning is assuming you keep the warning text in your C:\DOS
REM: directory.
warning C:\DOS
echo.
echo. You want to delete ALL the files in the directory of:
echo.
echo.
chdir
echo.
echo.
echo.
echo. Are you sure you want to do this?
echo.
pause
pause
echo. Okay... Now the files moved to c:\temp
echo.
md\temp
move %1 c:\temp
:end